package com.example.medicalrecord.AggregationModule.administrator.mapper;

import com.example.medicalrecord.AggregationModule.administrator.pojo.dto.AdminDoctorQuery;
import com.example.medicalrecord.AggregationModule.administrator.pojo.dto.AdministratorQuery;
import com.example.medicalrecord.AggregationModule.administrator.pojo.entity.Administrator;
import com.example.medicalrecord.AggregationModule.administrator.pojo.vo.AdminDoctorVO;
import com.example.medicalrecord.AggregationModule.administrator.pojo.vo.AdministratorVO;
import com.example.medicalrecord.AggregationModule.doctor.pojo.entity.Doctor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdministratorMapper {
    /*查询管理员数据*/
    List<AdministratorVO> selectAdmin(AdministratorQuery administratorQuery);

    /*查询到管理员个数*/
    Integer selectAdminCount(AdministratorQuery administratorQuery);

    /*添加管理员数据*/
    void insertAdmin(Administrator administrator);

    /*修改管理员数据*/
    void updateAdmin(Administrator administrator);
    /*删除管理员数据*/
    void deleteAdmin(Long id);

    /*医生数据查询*/
    List<AdminDoctorVO> selectDoctor(AdminDoctorQuery adminDoctorQuery);
    /*医生账号创建*/
    void insertAdminDoctor(Doctor doctor);
    /*医生状态更新*/
    void updateStatus(Doctor doctor);
    /*删除医生账号*/
    void deleteDoctor(Long doctorId);
}
